﻿namespace Demo.Framework.Business
{
    public class AntiAliasing
    {
        public static int NextValue()
        {
            int antiAliasing = GraphicSettings.AntiAliasing;
            if (antiAliasing == 0)
            {
                antiAliasing = 2;
            }
            else
            {
                antiAliasing = antiAliasing * 2;
            }

            if (antiAliasing > 16)
            {
                antiAliasing = 0;
            }
            return antiAliasing;
        }
    }
}
